var Mock =require('mockjs');
var lodash =require('lodash');

module.exports= function(n){
    return {
        product:lodash.times(500,function(n){
            return{
                id:n,
                title:Mock.Random.ctitle(10, 40),
                img:Mock.Random.image('200x200',Mock.Random.color()),
                content:Mock.Random.cparagraph(2,10),
                time:Mock.Random.date('yyyy-MM-dd'),
                stars:Mock.mock({
                    'number|1-100':100
                })
            }
        })
    };
};